
const http = require('../index.js')

export const userLogin = data => {
  return http({
    url: '/app/login',
    method: 'POST',
    data
  })
}



export const getUserRecord = data => {
  return http({
    url: '/app/getUserRecordDao',
    method: 'POST',
    data
  })
}





export const getOutAndInType = data => {
  return http({
    url: `/app/getOutAndInType/${data}`,
    method: 'GET',
  })
}




export const addUserRecord = data => {
  return http({
    url: `/app/addUserRecord`,
    method: 'POST',
	data
  })
}




export const getTotal = data => {
  return http({
    url: `/app/total`,
    method: 'POST',
	data
  })
}



export const setQuota = data => {
  return http({
    url: `/app/setQuota`,
    method: 'POST',
	data
  })
}


export const getUserInfo = data => {
  return http({
    url: `/app/getUserInfo`,
    method: 'POST',
	data
  })
}